function state = cfdContains(string, sub_string)
%--------------------------------------------------------------------------
%  Written by LiuHaHa @ NWPU, 2021 01 
%  Contact me at: liuzhikan@mail.nwpu.edu.cn
%==========================================================================
% Routine Description:
%   This function checks if the sub_string is contained instring
%--------------------------------------------------------------------------

if isempty(strfind(string, sub_string))
    state = false;
else
    state = true;
end